<!DOCTYPE html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>交易建议</title>
</head>
<body>
<div>
    <div style="min-height: 100px; height: auto;">
        <h6>总资产排序：</h6>
        {{- range .TotalAssetsOrderAccountNameArray }}
        <div>{{ . }}</div>
        {{- end }}
    </div>

    <div style="min-height: 100px; height: auto;">
        <table style="border: 1px solid black; width: 100%;">
            <caption style="color: red; font-size: 40px;">总资产最多的账号当天买入的股票</caption>
            <tr>
                <th style="background-color: #f2f2f2;">代码</th>
                <th style="background-color: #f2f2f2;">买入日期</th>
                <th style="background-color: #f2f2f2;">买入价格</th>
                <th style="background-color: #f2f2f2;">买入数量</th>
            </tr>
            {{- range .CurrentDateBuyStockArray }}
            <tr>
                <td style="text-align: center;">{{ .StockCode }}</td>
                <td style="text-align: center;">{{ .BuyDate }}</td>
                <td style="text-align: center;">{{ .BuyPrice }}</td>
                <td style="text-align: center;">{{ .BuyAmount }}</td>
            </tr>
            {{- end }}
        </table>
    </div>

    <div style="min-height: 100px; height: auto;">
        <table style="border: 1px solid black; width: 100%;">
            <caption style="color: green; font-size: 40px;">总资产最多的账号当天卖出的股票</caption>
            <tr>
                <th style="background-color: #f2f2f2;">代码</th>
                <th style="background-color: #f2f2f2;">买入日期</th>
                <th style="background-color: #f2f2f2;">买入价格</th>
                <th style="background-color: #f2f2f2;">买入数量</th>
            </tr>
            {{- range .CurrentDateSellStockArray }}
            <tr>
                <td style="text-align: center;">{{ .StockCode }}</td>
                <td style="text-align: center;">{{ .SellDate }}</td>
                <td style="text-align: center;">{{ .SellPrice }}</td>
                <td style="text-align: center;">{{ .SellAmount }}</td>
            </tr>
            {{- end }}
        </table>
    </div>

    <div style="min-height: 100px; height: auto;">
        <table style="border: 1px solid black; width: 100%;">
            <caption style="font-size: 40px;">所有账号的持仓情况</caption>
            <tr>
                <th style="background-color: #f2f2f2;">账号</th>
                <th style="background-color: #f2f2f2;">代码</th>
                <th style="background-color: #f2f2f2;">买入日期</th>
                <th style="background-color: #f2f2f2;">买入价格</th>
                <th style="background-color: #f2f2f2;">买入数量</th>
            </tr>
            {{- range .Real9OptimizeStockTransactionRecordArray }}
            <tr>
                <td style="text-align: center;">{{ .AccountName }}</td>
                <td style="text-align: center;">{{ .StockCode }}</td>
                <td style="text-align: center;">{{ .BuyDate }}</td>
                <td style="text-align: center;">{{ .BuyPrice }}</td>
                <td style="text-align: center;">{{ .BuyAmount }}</td>
            </tr>
            {{- end }}
        </table>
    </div>
</div>
</body>
</html>